package com.salton123.soulove.biz_bmob.aty

import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.salton123.soulove.app.BuildConfig
import com.salton123.soulove.app.R

import com.salton123.soulove.common.Constants

import com.salton123.ui.base.BaseActivity
import kotlinx.android.synthetic.main.activity_about.*

/**
 * User: wujinsheng1@yy.com
 * Date: 2020/4/22 21:31
 * ModifyTime: 21:31
 * Description:
 */
@Route(path = Constants.Router.User.ABOUT)
class AboutActivity : BaseActivity() {

    override fun enableTitleBar(): Boolean = false
    override fun initViewAndData(savedInstanceState: Bundle?) {
        tvVersion.text = BuildConfig.VERSION_NAME
        tvBuildHash.text = BuildConfig.GIT_HASH
        tvBuildTime.text = BuildConfig.BUILD_TIME
        btnClose.setOnClickListener {
            finish()
        }
    }

    override fun getLayoutId(): Int = R.layout.activity_about

    override fun getTitleText(): String = getString(R.string.setting_about)
}